set dest_name=poton2_1_2

cd "%~d0%~p0"

mkdir ~dist
mkdir ~dist\%dest_name%

xcopy /y Release ~dist\%dest_name%
copy ..\readme.txt ~dist\%dest_name%

del ~dist\%dest_name%.zip
del ~dist\%dest_name%.zip.exe

cd ~dist
..\zip\zip.exe -r %dest_name%.zip %dest_name%

copy /b ..\zip\unzipsfx.exe+%dest_name%.zip %dest_name%.zip.exe

pause
